﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZLDC.Common.Estate;

namespace ZLDC.Topo.BLL.Estate
{
     public class HousingExtendBLL
    {
         public static string p_Housing_Extend_insert(int hid, string protectedClass)
         {
             string outmsg = "";
             int newid = 0;

             using (_Database db = new _Database("estate")) 
             {
                 ZLDC.DAL.Estate.HousingExtendDAL.p_Housing_Extend_insert(hid, protectedClass, out outmsg, out newid, db);
             }
             return outmsg;
         }

         public static string p_Housing_Extend_update(int hid)
         {
             string outmsg = "";

             using (_Database db = new _Database("estate"))
             {
                 ZLDC.DAL.Estate.HousingExtendDAL.p_Housing_Extend_update(hid, out outmsg, db);
             }
             return outmsg;
         }

        
         public static string p_Housing_Extend_List(int hid) 
         {
             string protectedClass = "";
             using (_Database db = new _Database("estate")) 
             {
                 ZLDC.DAL.Estate.HousingExtendDAL.p_Housing_Extend_List(hid,out protectedClass,db);
             }
             return protectedClass;
         }
    }
}
